 <div id="body_inner_right">
                <div id="wrapper_content">
                    <div id="content">
                        <h3>Add Testimonial</h3>
                        <form id="fromaddtesti" name="fromaddtesti" method="post" action="<?php echo base_url(); ?>index.php/testimonial/save" enctype="multipart/form-data">
                        <label>Firstname</label><br /> <input type="text" id="firstname" name="firstname">
                        <br /><br />
                        <label>Lastname</label><br /> <input type="text" id="lastname" name="lastname">
                        <br /><br />
                        <label>Position & Company</label><br /> <input type="text" id="position" name="position">
                        <br /><br />
                        <label>Testimonial</label><br /> <textarea cols="30" rows="5" id="testi" name="testi"></textarea>
                        <br />
                        <input type="button" name="cmdSave" id="cmdSave" class="button_blue" value="Save">
                        <input type="button" name="cmdCancel" id="cmdCancel" class="button_blue" value="Cancel">
                        </form>
                    </div>
                </div>
            </div>
            
            <script type="text/javascript">
            $("#cmdSave").click(function()
                {
                    if($("#firstname").val() == ""){
                            inlineMessage("firstname", "Please enter the Firstname.", 3);
                        } else if($("#position").val() == ""){
                            inlineMessage("position", "Please enter the Position.", 3);
                        }else if($("#testi").val() == ""){
                            inlineMessage("testi", "Please enter the Testimonial.", 3);
                        } else {
                    $("#fromaddtesti").submit();
                    }
                }
            );
            </script>
        
            <script type="text/javascript">
            $("#cmdCancel").click
            (
                function()
                {
                    window.location = "<?php echo base_url(); ?>index.php/testimonial/add";
                }
            );
            </script>
            
           